<template>
  <!-- 已处理反馈详情 -->
  <div class="feedReplyDetail">
    <el-card shadow="never" style="margin-top: 30px">
      <div class="header">
        <div class="page-header">
          <el-page-header @back="goBack" content="已处理反馈详情" style="margin-bottom: 20px">
          </el-page-header>
        </div>
      </div>

      <div class="feedTable">
        <el-form :model="feedTable"
                 ref="feedTable"
                 label-width="120px"
                 class="demo-ruleForm"
                 size="mini"
                 :disabled="true">
          <el-form-item  label="用户名称" prop="userName">
            <el-input  v-model="feedTable.userName"></el-input>
          </el-form-item>
          <el-form-item label="电话号码" prop="userPhone">
            <el-input v-model="feedTable.userPhone"></el-input>
          </el-form-item>
          <el-form-item label="反馈问题" prop="feedQuestion">
            <el-input v-model="feedTable.feedQuestion"></el-input>
          </el-form-item>
          <el-form-item label="反馈描述" prop="feedDescription">
            <el-input type="textarea"
                      v-model="feedTable.feedDescription"
                      :rows="5"></el-input>
          </el-form-item>
          <el-form-item label="回   复" prop="replyContent">
            <el-input type="textarea"
                      v-model="feedTable.replyContent"
                      :rows="5"></el-input>
          </el-form-item>
          <el-form-item label="回复时间" prop="replyTime">
            <el-input v-model="feedTable.replyTime">
            </el-input>
          </el-form-item>

        </el-form>
      </div>


    </el-card>
  </div>
</template>

<script>
import {getFeedByReplyId} from "@/api/allApi";
import {shortTime} from "../../../../utils/timeFormat";
import moment from "moment";



export default {
  name: "FeedReplyDetail",
  data() {
    return {
      feedTable:{},
    }
  },
  methods: {
    shortTime,
    goBack() {
      this.$router.back();
    },
    getFeedByReplyId(){
      getFeedByReplyId(this.$route.params.replyId).then(res=>{
        this.feedTable = res.data.data
        // 修改表单时间
        this.feedTable.replyTime = moment(this.feedTable.replyTime).format("YYYY-MM-DD HH:mm:ss")
      })
    }
  },
  mounted() {
    this.getFeedByReplyId()
  }
}
</script>

<style scoped>
  .feedTable {
    width: 800px;
  }
</style>